package ooday02homework;

public class Teacher extends Person {
    double salary;

    Teacher() {

    }

    Teacher(String name, int age, String address, double salary) {
        super(name,age,address);
        this.salary=salary;
    }

    void teach() {
        System.out.println(name+"在教书");
    }

    void sayHi() {
        System.out.println(name+"名字  "+age+"年龄    "
                +address+"地址"+salary+"薪资");
    }
}
